const app = getApp()

Component({
  properties: {
    item: {
      type: Object
    },
    lang: {
      type: String,
      value: 'cn'
    }
  },
  data: {
    lang: app.globalData.language
  },
  methods: {
    changeNav: function(e) {
      var myEventDetail = e.currentTarget; // detail对象，提供给事件监听函数
      var myEventOption = {} // 触发事件的选项
      this.triggerEvent('myevent', myEventDetail, myEventOption)
    }
  }
});
